Fullstack voting app built with React, Express, MongoDB and other buzzwords
This is one of fullstack projects in Take Home Projects section on freeCodeCamp written in TypeScript.
First of all install all deps:
yarn install
This will also build client side of the application.
Server part of the app requires some env variables. For development build they can be placed in server/.env
and then provided to the server side of the app with yarn env
like this:
yarn env node dist/
The following command can help to get some idea about what these variables are and how to name them:
git grep -A3 -B3 process.env
Once the environment is set up the easiest way to start is to run tmux script from the client dir:
cd client && bash start_tmux_session.sh
but this requires system-wide tmux installation.
To start without tmux:
yarn start
in both client
and server
dirsyarn build
and run server side with
NODE_ENV='production' yarn env yarn start