Skip to content

cpe-kmutt-student/pre-freshy-cpe-2021

Repository files navigation

pre-freshy 2021

Activities website for CPE KMUTT FRESHY 2021


📝 Requirements

  1. MongoDB - The NoSQL database. (We use mongoose for modeling the documents)

🔧 How to install?

This website use next.js to provide the system, if you want to see our website you can follow the instruction below.

You need yarn package management to run our website if you don't have it, just use the npm i -g yarn command for installing yarn.

  1. Create .env.local file to config our website e.g. database, session secret. You can see the .env.example for the configuration example.
  2. Enter the yarn command on your console or terminal to install all of the required modules that this website needs.
  3. Happy by type yarn dev to view our website on localhost:3000

⚙ Docker Container

We also have docker-compose for you...

so you can easily make MongoDB server, just type the command below on your console or terminal.

docker-compose --env-file=./.env.local up -d db

This command only build the MongoDB service

If you want to run web service (NextJS production build) and database service in one container, just type

docker-compose --env-file=./.env.local up -d

This command builds the web/database service with the production build


💻 Developer Cheatsheet

Simply run the commands below in sequence to view or develop our website.

docker-compose --env-file=./.env.local up -d db
yarn install
yarn dev

We are grateful to the community for contributing bug fixes and improvements on our website


⚙ Contributors

Fullstack Developer

Graphic Artist

DevOps


📷 Preview

The part of some website features

CPE PRE-FRESHY 2021

About

Activities website of Pre-Freshy CPE 2021, KMUTT

Topics

Resources

Stars

Watchers

Forks

Contributors 6

Languages